<?php
include("../../config/config.php");
$DM->loadClass("fw","FwUser");
// create and instance class
$object_FwUser = new FwUser();
$object_FwUser->id = array_key_exists("id",$_POST)?$_POST["id"]:""; 
$object_FwUser->login = array_key_exists("login",$_POST)?$_POST["login"]:""; 
$object_FwUser->pass = array_key_exists("pass",$_POST)?$_POST["pass"]:""; 
$object_FwUser->email = array_key_exists("email",$_POST)?$_POST["email"]:""; 
$object_FwUser->first_name = array_key_exists("first_name",$_POST)?$_POST["first_name"]:""; 
$object_FwUser->last_name = array_key_exists("last_name",$_POST)?$_POST["last_name"]:""; 
$object_FwUser->level_id = array_key_exists("level_id",$_POST)?$_POST["level_id"]:""; 
$object_FwUser->enabled = array_key_exists("enabled",$_POST)?$_POST["enabled"]:""; 
$object_FwUser->updated_on = array_key_exists("updated_on",$_POST)?$_POST["updated_on"]:""; 
$object_FwUser->created_on = array_key_exists("created_on",$_POST)?$_POST["created_on"]:""; 
if ($object_FwUser->save()){
	header("Location: FwUser.list.php");
}else{
	exit("Erro ao salvar FwUser");
}
?>
